from django import forms
from django.core import validators


class LoginForm(forms.Form):
    username = forms.CharField(validators=(validators.RegexValidator(r"\w{6,18}"), '用户名不合法!'))
    password = forms.CharField(validators=(validators.RegexValidator(r"\w{6,8}"),'用户密码不合法!'))
